package com.starsea.book.ui.newpage.utils

sealed class CountTimeState<out T> {
    companion object {
        fun <T> onCountFinish(data: T): CountTimeState<T> = Finish(data)
        fun <T> onCountLoading(data: T): CountTimeState<T> = Loading(data)
    }

    data class Loading<out T>(val data: T) : CountTimeState<T>()
    data class Finish<out T>(val data: T) : CountTimeState<T>()
}
